package data;

import java.util.List;

public class SystemInfoDao {
	public static int countAll(DaoSession daoSession){
		return (Integer)daoSession.selectOne(
			"FINGERDB_SYSTEMINFO.countAll");		
	}
    @SuppressWarnings("unchecked")
	public static List<SystemInfoBean> selectAll(DaoSession daoSession) {
    	return (List<SystemInfoBean>)daoSession.selectList("FINGERDB_SYSTEMINFO.selectAll");
    }
	public static void insert(DaoSession daoSession, SystemInfoBean systemInfo){
		daoSession.insert("FINGERDB_SYSTEMINFO.insert", systemInfo);
	}
	
	public static int delete(DaoSession daoSession, String sysno){
		return daoSession.delete("FINGERDB_SYSTEMINFO.delete", sysno);
	}
	
	public static SystemInfoBean select(DaoSession daoSession, String sysno){
		return (SystemInfoBean)daoSession.selectOne(
			"FINGERDB_SYSTEMINFO.select", sysno);
	}
}
